[WM6] Owner of a component. What exactly is this for?

Posted by kornelijepetak on Stack Overflow See other posts from Stack Overflow or by kornelijepetak
Published on 2010-04-13T14:50:43Z Indexed on 2010/04/13 14:52 UTC
Read the original article Hit count: 279

Filed under:
|
|
|

I am developing an app for Windows Mobile 6 and there is a CameraCaptureDialog class that enables me to call a camera app from my own application. The class has an Owner property that most examples on the internet set to "this".

cam.Owner = this;

What exactly does this do? I've seen a similar scenario with Windows Forms components/controls by setting the Parent control. In that case I guess it's used only for layout algorithms, but other than that, is there any useful purpose?

I don't see how setting an owner of the CameraCaptureDialog can (and actually does not) make any difference (at least not a visible one).

Any insight would be appreciated.

© Stack Overflow or respective owner

Related posts about windows-mobile

Related posts about camera